package com.ruoyi.prescription.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 处方对象 prescription
 * 
 * @author ruoyi
 * @date 2025-04-12
 */
public class Prescription extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    private Long id;

    /** 患者id */
    @Excel(name = "患者id")
    private Long patientsId;

    /** 医护人员id */
    @Excel(name = "医护人员id")
    private Long employeeId;

    /** 状态,1 审核中，2 治疗中，3 已完成，4 已失败 */
    @Excel(name = "状态,1 审核中，2 治疗中，3 已完成，4 已失败")
    private String status;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal money;

    /** 处方明细信息 */
    private List<PrescriptionDetail> prescriptionDetailList;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPatientsId(Long patientsId) {
        this.patientsId = patientsId;
    }

    public Long getPatientsId() {
        return patientsId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public List<PrescriptionDetail> getPrescriptionDetailList() {
        return prescriptionDetailList;
    }

    public void setPrescriptionDetailList(List<PrescriptionDetail> prescriptionDetailList) {
        this.prescriptionDetailList = prescriptionDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("patientsId", getPatientsId())
                .append("employeeId", getEmployeeId())
                .append("createTime", getCreateTime())
                .append("status", getStatus())
                .append("money", getMoney())
                .append("prescriptionDetailList", getPrescriptionDetailList())
                .toString();
    }
}
